import { _decorator, Component, Node, Label, EditBox, EventHandler, sys } from 'cc';
const { ccclass, property } = _decorator;

import { UICtrl } from "./../../Framework/Managers/UICtrl";

@ccclass('UILoading_Ctrl')
export class UILoading_Ctrl extends UICtrl {
    private progressValue: Label = null as unknown as Label;
    editBox:EditBox;
    nameEdit:EditBox;
    phoneNumber:string;
    playerName:string;
    loginDialog:Node;
    
    accountBlocking:Node;
    
    onLoad(): void {
        super.onLoad();
        this.progressValue = this.view["Progress"].getComponent(Label);
        this.progressValue.string = "0%";
        this.AddMessage("loadProgress");
    }


    public recvMsg(cmd: string, data: any): void {
        this.progressValue.string = data + "%";
    }

    onDestroy(): void {
        super.onDestroy();
    }
}
